/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package beans;

import java.util.*;
import javax.ejb.*;
import entities.EventType;

/**
 *
 * @author pwitek
 */
@Singleton
public class EventTypeBean implements EventTypeBeanLocal {
    @EJB
    private EventTypeDAOLocal eventTypeDAO;

    public List<EventType> getEventTypes()
    {
        return eventTypeDAO.getAll();
    }

    public EventType getDefault() {
        return eventTypeDAO.getDefault();
    }

    public EventType getByName(String name) {
        return eventTypeDAO.getByName(name);
    }
}
